package com.biter.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Formater {
    public static SimpleDateFormat dateTimeFormater = new SimpleDateFormat(
            "yyyy-MM-dd HH:mm:ss", Locale.CHINA);
    
    public static SimpleDateFormat dateTimeFormater2 = new SimpleDateFormat(
            "MM-dd HH:mm", Locale.CHINA);
    
    public static String formatDateTime(Date dt) {
        if (dt == null)
            return "";
        else
            return dateTimeFormater.format(dt);
    }
    
    public static String formatDateTime2(Date dt) {
        if (dt == null)
            return "";
        else
            return dateTimeFormater2.format(dt);
    }
}
